// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";
import VueAxios from "vue-axios";

import * as echarts from 'echarts';

Vue.use(ElementUI);
Vue.use(VueAxios,axios);

Vue.config.productionTip = false

axios.defaults.baseURL = "http://localhost"
//设置全局，每次ajax请求携带cookies
// axios.defaults.withCredentials = true
// 将API方法绑定到全局
Vue.prototype.$axios = axios
// Vue.prototype.$Url1 = "http://218.199.189.218:5000/"
// Vue.prototype.$Url2 = "http://218.199.189.218:5000/"

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App)
})
